package com.nuit.cxl.mybatistest2.service;

import com.nuit.cxl.mybatistest2.mapper.PersonMapper;
import com.nuit.cxl.mybatistest2.pojo.Person;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PersonServiceImpl2 {

    @Autowired
    PersonMapper personMapper;

    public Person getPersonById(int id) {
        System.out.println("impl2--->" + personMapper.hashCode());
        Person person = personMapper.selectById(id);

        return person;
    }
}
